/**
 @Author：wym
 */ 
 /**
 @Author:闻永明
 */ 
 window.onload = function() {
	//侧边栏切换
	var sode_scroll = document.getElementsByClassName("layui-side-scroll")[0];
	var lay_body_child = document.getElementsByClassName("lay-body-child");
	var dd = sode_scroll.getElementsByTagName("dd");
	var lay_body = document.getElementsByClassName("lay-body")
	var iframe = document.getElementById("iframe")

	for(var i = 0; i < dd.length; i++) {
		dd[i].index = i;
		dd[i].onclick = function(data) {
			var id = this.childNodes[1].dataset.id
			iframe.setAttribute('src', 'body/' + id + '.html');
		}
	}
}

layui.use(['element', 'layer', 'form', 'table', 'laydate', 'upload'], function() {
		var element = layui.element
});